import request from '@/utils/request'

// 查询应用分类详细
export function addOrUpdateTable(data) {
    return request({
      url: '/online/tableInfo/updateTable',
      method: 'post',
      data: data
    })
  }
  
  export function getOnlineList(params) {
    return request({
      url: '/online/tableInfo/list',
      method: 'get',
      params: params
    })
  }
  export function deleteOnlineTableInfo(params) {
    return request({
      url: '/online/tableInfo/dropTable',
      method: 'get',
      params: params
    })
  }
  export function getDetaillineTableInfo(params) {
    return request({
      url: '/online/tableInfo/tableInfo',
      method: 'get',
      params: params
    })
  }

  export function oneTouch(params) {
    return request({
      url: '/online/tableInfo/oneTouch',
      method: 'get',
      params: params
    })
  }

  export function deleteMore(ids) {
    return request({
      url: `/online/tableInfo/dropTable/${ids}`,
      method: 'delete',
    })
  }
  export function getByTableName(params) {
    return request({
      url: `/online/form/getByTableName`,
      method: 'get',
      params: params
    })
  }
  export function formFields(data) {
    return request({
      url: `/online/form/formFields`,
      method: 'post',
      data: data
    })
  }
  export function save(data) {
    return request({
      url: '/online/form/save',
      method: 'post',
      data: data
    })
  }
  export function getField(params){
    return request({
      url: '/online/form/getByAppFormModelId',
      method: 'get',
      params
    })
  }
  export function insertAppTableInfo(data) {
    return request({
      url: '/online/tableInfo/insertAppTableInfo',
      method: 'post',
      data: data
    })
  }

  

  